package Chapter07.Homework.H20211021;

import java.util.Scanner;

//商场会员系统测试类
public class Test {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System1 system1=new System1();
        System.out.println("*****包河区 新都会*****");
        int choice=0;
        while (true){
            System.out.println("1 添加新会员开卡的方法 2 显示信息 3 涨分");
            choice=input.nextInt();
            if(choice==1){
                System.out.println("请输入会员号：");
                String id=input.next();
                System.out.println("请输入姓名：");
                String name=input.next();
                System.out.println("请输入手机号：");
                String telephone=input.next();
                System.out.println("请输入积分：");
                int score=input.nextInt();
                Member member1=new Member(id,name,telephone,score);
                system1.add(member1);
            }else if(choice==2){
                system1.show();
            }else if(choice==3){
                System.out.println("请输入要涨分的id:");
                String id=input.next();
                System.out.println("请输入要涨分的分数");
                int score=input.nextInt();
                system1.up(id,score);
            }
        }
    }
}
